package vashion.azeroth.contant;


public enum AddressErrorEnum {
	
//	INCORRECT(1003, "不正确"),
	
//	EXIXTID(1004, "用户名已存在"),
	
	ADDR_ADD_NULL(7001, "添加收货地址为空"),

	ADDR_ADD_FAIL(7002, "收货地址添加失败"),
	
	ADDR_OVER_COUNT(7003, "收货数量超出10个"),
	
	ADDR_GET_FAIL(7004, "收货地址获取失败"),
	
	ADDR_DEL_FAIL(7005, "收货地址删除失败"),
	
	ADDR_ID_NOTEXIST(7006, "要删除的收货地址id不存在"),
	
	ADDR_SET_DEFAULT_ERROR(7007, "默认收货地址参数设置不正确"),
	
	UPDATE_ADDR_FAIL(7008, "更新收货地址异常"),
	
	UPDATE_DEFAULT_FAILED(7009, "旧的默认收货地址更新失败"),
	
	DELETE_DEFAULT_FAILED(7010, "旧的默认收货地址更新为非默认失败"),
	
	SUPPLIER_ADDR_OVER_COUNT(7011, "取货数量超出1个"),
	
	;
	
	private  int errorCode;
	private  String errorMessage;

	public int getErrorCode() {
		return errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	private AddressErrorEnum(int errorCode, String errorMessage) {
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}
	
	
}
